            <nav class="navbar navbar-default head" role="navigation"> 
                <div class="logo">
                    <a title="多骨鱼，小众轻阅读" href="#">
                        <img src="__IMG__/logo.png" alt="多骨鱼，小众轻阅读">
                    </a>
                </div>

                <div class="search">
                    {if $member == null}
                    <div class="u-info">
                        <a href="{:url('index/login/index')}" class="btn btn-default btn-sm">登录</a>
                    </div>
                    {/if}

                    <div class="search-box" id="search-box">
                        <form action="/index/news/select">
                            <input type="text" class="input" name="q" value="<?php echo $_GET['q'];?>" />
                            <button type="submit" class="search-btn"><i class="iconfont">&#xe783;</i></button>
                        </form>
                    </div>
                    <div class="clearfix"></div>
                </div>

                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#menu">
                        <span class="sr-only">展开导航</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span> 
                    </button>
                    <!-- <a class="navbar-brand" href="#">网站标题</a> -->
                </div>

                <div class="collapse navbar-collapse" id="menu">
                    <ul class="nav navbar-nav">
                        <li class="{if $cname == 'index' AND $aname != 'about'}active{/if}">
                            <a href="{:url('index/index')}">首页</a>
                        </li>
                        <li class="{if $aname == 'about'}active{/if}">
                            <a href="{:url('index/about')}">关于</a>
                        </li>
                        <li class="{if $cname == 'news'}active{/if}">
                            <a href="{:url('news/index')}">博文</a>
                        </li>
                        <li class="{if $cname == 'note'}active{/if}">
                            <a href="{:url('note/index')}">杂记</a>
                        </li>
                        <li class="{if $cname == 'message'}active{/if}">
                            <a href="{:url('message/index')}">留言板</a>
                        </li>

                        {if $member != null}
                            <li class="{if $cname == 'user'}active{/if}">

                                <?php if(is_mobile_request()){?>
                                    <a href="{:url('user/wap')}">个人中心</a>
                                <?php }else{?>
                                    <a href="{:url('user/index')}">个人中心</a>
                                <?php }?>
                            </li>                        
                        {/if}
                    </ul>
                </div>
            </nav>